import { Modal } from "ant-design-vue";
import { ExclamationCircleOutlined } from "@ant-design/icons-vue";
import { createVNode } from "vue";
export const useConfirm = (opts: any) => {
  let configs = {
    okText: "确定",
    cancelText: "取消",
    icon: createVNode(ExclamationCircleOutlined),
  };
  return Modal.confirm(Object.assign(configs, opts));
};
